package com.yuhanginfo.modules.web.entity;

import org.hibernate.validator.constraints.Length;

import com.yuhanginfo.common.persistence.WebDataEntity;

/**
 * 首页品牌Entity
 * @author yangs
 * @version 2017-09-26
 */
public class WebCarBrand extends WebDataEntity<WebCarBrand> {
	
	private static final long serialVersionUID = 1L;
	private String url;		// 链接
	private String img;		// 图片
	private String sort;		// 排序
	private String name;		// 车型编号
	
	public WebCarBrand() {
		super();
	}

	public WebCarBrand(String id){
		super(id);
	}

	@Length(min=0, max=255, message="链接长度必须介于 0 和 255 之间")
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
	
	@Length(min=0, max=255, message="图片长度必须介于 0 和 255 之间")
	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}
	
	@Length(min=0, max=11, message="排序长度必须介于 0 和 11 之间")
	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	
	
}